<div class="swiper-wrapper">
  {loop source=get_ad_pics($tpl_id='1')}
  <div class="swiper-slide slider-item" style="background-image:url({print $v['pic']/})" title="{print $v['pic_text']/}"></div>
  {/loop}
</div>